package org.jeecg.modules.friends.enums;

import lombok.Getter;

/**
 * Created on 2024-08-28
 */
public enum BaseInfoStatusEnum {
    // 基本资料审核态 1. 待审核 2. 审核通过 22.待审核（默认通过）  3. 审核失败
    default_success(22, "待审核（初次提交）"),
    auditing(1, "待审核（重新提交）"),
    audit_success(2, "审核通过"),
    audit_fail(3, "审核失败");


    BaseInfoStatusEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static BaseInfoStatusEnum getByCode(Integer code) {
        for (BaseInfoStatusEnum enumName : values()) {
            if (enumName.getCode().equals(code)) {
                return enumName;
            }
        }
        return default_success;
    }

    @Getter
    private Integer code;
    @Getter
    private String desc;

}
